package com.dsy.agent;

public abstract class ReActAgent extends BaseAgent {
    @Override
    public String step() throws InterruptedException {
        if (!think()) {
            return "不需要采取行动！";
        }
        return act();
    }

    public abstract boolean think();

    public abstract String act() throws InterruptedException;
}
